﻿<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>二维码生成</title>
		<meta name="viewport" content="width=device-width, initial-scale=1" charset="utf-8">
		<link rel="stylesheet" href="../css/bootstrap-3.3.7-dist/css/bootstrap.css">
		<link rel="stylesheet" href="../css/body.css"/>
		
		<!-- <link rel="stylesheet" type="text/css" href="../css/My97DatePicker/WdatePicker.css"> -->
		<script type="text/javascript" src="../css/My97DatePicker/WdatePicker.js"></script>
		
		<script src="../js/jQuery.js"></script>
		<script src="../css/bootstrap-3.3.7-dist/js/bootstrap.js"></script>
		<script src="../js/index.js"></script>
		<script src="../js/jquery.qrcode.min.js"></script>
		<script>
			if(sessionStorage.token == null){
				alert("请重新登录！")
				location.href = "../index/index.html";
			}
		</script>
		<script>
			document.onkeydown = function () {
			if (window.event && window.event.keyCode == 123) {
				// alert("F12被禁用");
				event.keyCode = 0;
				event.returnValue = false;
			}
			
		}
		</script>
		<style>
		</style>
	</head>
	<body>
		<!--首页初始导航条-->
		<nav class="navbar navbar-inverse navbar-fixed-top">
			<div class="container">
				<div class="navbar-header">
					<span class="navbar-brand logo1">川农车辆预约系统</span>
					<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#m1">
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
				</div>
				<div class="navbar-collapse collapse" id="m1">
					<ul class="nav navbar-nav navbar-left">
						<li class="active">
							<a href="../index/index.html"><span class="glyphicon glyphicon-home"></span>&nbsp;首页</a><!--这里的span是设置bootstrap字体图标类-->
						</li>
						
						<!--长期车辆申请菜单-->
						<!--<li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown">
								长期车辆申请
								<b class="caret"></b>
							</a>
							<ul class="dropdown-menu">
								<li>
									<a href="../index/fileDownload.html">表单下载</a>
								</li>
								<li>
									<a href="../index/longResults.html">结果公示</a>
								</li>
							</ul>
						</li>-->
					</ul>
					
					<ul class="nav navbar-nav navbar-right" id="loginWho">
						<li><a href="../index/login.html">登陆</a></li>
					</ul>
				</div>
			</div>
		</nav>
		
		<div class="container allStyle">
			<form class="" id="applicationForm" enctype="text/plain">	
				<div class="form-group">
					<label>申请单位</label>
					<input type="text" name="comerName" value="" class="form-control" placeholder="请输入申请单位" id="comerName" />
				</div>
				
				<div class="form-group">
					<label>申请理由</label>
					<textarea class="form-control" name="reason" rows="3"  style="min-width: 90%" placeholder="请输入来访车辆申请理由"></textarea>
				</div>
				
				<div class="form-group">
					<label>车辆来访起始时间：</label>
					<div id="" class="form-inline" style="display:inline-block">
						<input id="yMd" name="beginTime" class="form-control" type="text" placeholder="请选择起始时间" onClick="WdatePicker()"/>
					</div>

					<label>车辆来访结束时间：</label>
					<div id="" class="form-inline" style="display:inline-block">
						<input id="yMd" name="endTime" class="form-control" type="text" placeholder="请选择起始时间" onClick="WdatePicker()"/>
					</div>
					
				</div>
				
				<input type="button" class="btn btn-primary"  value="生成二维码" onclick="getQrcode()" />
				<div class="form-group" id="">
					<br />
					<div class="form-group" id="qrcode"></div>
				</div>
				
				<a id="download"></a>
				<input type="button" class="btn btn-primary" value="下载二维码" onclick="downloadQrcode()" />
				<input type="button" class="btn btn-primary"  value="重置" onclick="refresh()" />
			</form>
		</div>
		
	</body>
	<script type="text/javascript" src="../js/judge.js"></script>
</html>